.class public Lcom/example/inshopbuy/InShopBuyShopsAdapter;
.super Landroid/widget/BaseAdapter;
.source "InShopBuyShopsAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field private imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private inflater:Landroid/view/LayoutInflater;

.field private m:Lmyapp/MyApp;

.field private shopBeans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/InShopBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/InShopBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 35
    .local p2, "shopBeans":Ljava/util/List;, "Ljava/util/List<Lcom/example/inshopbuy/InShopBean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 36
    iput-object p1, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->context:Landroid/content/Context;

    .line 37
    iput-object p2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;

    .line 38
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->inflater:Landroid/view/LayoutInflater;

    .line 39
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->m:Lmyapp/MyApp;

    .line 40
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 41
    return-void
.end method

.method static synthetic access$0(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 31
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)Ljava/util/List;
    .locals 1

    .prologue
    .line 29
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 51
    iget-object v0, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 57
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 6
    .param p1, "arg0"    # I
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v4, 0x0

    .line 65
    if-nez p2, :cond_0

    .line 67
    new-instance v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;

    invoke-direct {v1, v4}, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;-><init>(Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;)V

    .line 68
    .local v1, "myHolder":Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;
    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->inflater:Landroid/view/LayoutInflater;

    const v3, 0x7f030070

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 70
    const v2, 0x7f0c0282

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RelativeLayout;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->item:Landroid/widget/RelativeLayout;

    .line 71
    const v2, 0x7f0c009b

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->shopname:Landroid/widget/TextView;

    .line 72
    const v2, 0x7f0c02a8

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->shopinstro:Landroid/widget/TextView;

    .line 73
    const v2, 0x7f0c0287

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->men_sell:Landroid/widget/TextView;

    .line 74
    const v2, 0x7f0c0288

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->name:Landroid/widget/TextView;

    .line 75
    const v2, 0x7f0c028a

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->position:Landroid/widget/TextView;

    .line 76
    const v2, 0x7f0c0289

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->juli:Landroid/widget/TextView;

    .line 77
    const v2, 0x7f0c0286

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RatingBar;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->ratingBar:Landroid/widget/RatingBar;

    .line 78
    const v2, 0x7f0c0283

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->shopimg:Landroid/widget/ImageView;

    .line 80
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->ratingBar:Landroid/widget/RatingBar;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Landroid/widget/RatingBar;->setIsIndicator(Z)V

    .line 82
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 87
    :goto_0
    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->shopBeans:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/example/inshopbuy/InShopBean;

    .line 89
    .local v0, "bean":Lcom/example/inshopbuy/InShopBean;
    iget-object v2, p0, Lcom/example/inshopbuy/InShopBuyShopsAdapter;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getShoplogo()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->shopimg:Landroid/widget/ImageView;

    invoke-static {}, Lmyapp/MyApp;->getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 90
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->ratingBar:Landroid/widget/RatingBar;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getPoint()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/RatingBar;->setProgress(I)V

    .line 91
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->shopname:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getShopname()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 92
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->juli:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\u8ddd\u79bb"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getDistance()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 93
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->position:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getAddress()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 94
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->men_sell:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\u4eba\u5747"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getPersoncost()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\u5143"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 95
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->name:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/example/inshopbuy/InShopBean;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 96
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->item:Landroid/widget/RelativeLayout;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    .line 97
    iget-object v2, v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;->item:Landroid/widget/RelativeLayout;

    new-instance v3, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;

    invoke-direct {v3, p0}, Lcom/example/inshopbuy/InShopBuyShopsAdapter$1;-><init>(Lcom/example/inshopbuy/InShopBuyShopsAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    return-object p2

    .line 84
    .end local v0    # "bean":Lcom/example/inshopbuy/InShopBean;
    .end local v1    # "myHolder":Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;
    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;

    .restart local v1    # "myHolder":Lcom/example/inshopbuy/InShopBuyShopsAdapter$MyHolder;
    goto/16 :goto_0
.end method
